package routers

import (
	"github.com/astaxie/beego"
)

func init() {

	beego.GlobalControllerRouter["webApp/controllers:ActicleController"] = append(beego.GlobalControllerRouter["webApp/controllers:ActicleController"],
		beego.ControllerComments{
			"Home",
			`/home`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["webApp/controllers:MainController"] = append(beego.GlobalControllerRouter["webApp/controllers:MainController"],
		beego.ControllerComments{
			"Get",
			`/`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["webApp/controllers:NewsController"] = append(beego.GlobalControllerRouter["webApp/controllers:NewsController"],
		beego.ControllerComments{
			"News",
			`/news`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["webApp/controllers:NewsController"] = append(beego.GlobalControllerRouter["webApp/controllers:NewsController"],
		beego.ControllerComments{
			"Show",
			`/news/search`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["webApp/controllers:NewsController"] = append(beego.GlobalControllerRouter["webApp/controllers:NewsController"],
		beego.ControllerComments{
			"Ahow",
			`/news/:id`,
			[]string{"get"},
			nil})

	beego.GlobalControllerRouter["webApp/controllers:NewsController"] = append(beego.GlobalControllerRouter["webApp/controllers:NewsController"],
		beego.ControllerComments{
			"Thow",
			`/news/searchAll`,
			[]string{"post"},
			nil})

}
